require 'test/unit'
require_relative 'observer_analyzer'
require_relative 'poker'
require_relative 'player'

class TC_Observer < Test::Unit::TestCase

  def test_ob_analyser
  ob = ObserverAnalyzer.new

  players = [Player.new("John"), Player.new("Mary"), Player.new("Luke"), Player.new("Eimear")]
  poker = Poker.new 132, players, 1
  poker.play
  ob.update poker
  assert ob
  assert ob.results
 end
end